use colour from `Style` instead of palette for icons
authorJyrki Gadinger <nilsding@nilsding.org>
Wed, 19 Mar 2025 10:24:39 +0000 (11:24 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 19 Mar 2025 12:10:47 +0000 (12:10 +0000)
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
src/gui/tray/CurrentAccountHeaderButton.qml

index ca3a3a5ecd6d8dcf3d8fdfde207e5855c31cfe93..3b7249704f014702e7c2dd55e63d879641f542e1 100644 (file)
@@ -198,7 +198,7 @@ Button {
                 id: currentAccountUser
                 Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
                 width: Style.currentAccountLabelWidth
-                color: palette.windowText
+                color: Style.currentUserHeaderTextColor
                 text: UserModel.currentUser ? UserModel.currentUser.name : ""
                 elide: Text.ElideRight
 
@@ -210,7 +210,7 @@ Button {
                 id: currentAccountServer
                 Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
                 width: Style.currentAccountLabelWidth
-                color: palette.windowText
+                color: Style.currentUserHeaderTextColor
                 text: UserModel.currentUser ? UserModel.currentUser.server : ""
                 elide: Text.ElideRight
                 visible: UserModel.numUsers() > 1
@@ -227,7 +227,7 @@ Button {
                     id: emoji
                     visible: UserModel.currentUser && UserModel.currentUser.statusEmoji !== ""
                     width: Style.userStatusEmojiSize
-                    color: palette.windowText
+                    color: Style.currentUserHeaderTextColor
                     text: UserModel.currentUser ? UserModel.currentUser.statusEmoji : ""
                 }
                 EnforcedPlainTextLabel {
@@ -236,7 +236,7 @@ Button {
                     Layout.fillWidth: true
                     visible: UserModel.currentUser && UserModel.currentUser.statusMessage !== ""
                     width: Style.currentAccountLabelWidth
-                    color: palette.windowText
+                    color: Style.currentUserHeaderTextColor
                     text: UserModel.currentUser && UserModel.currentUser.statusMessage !== ""
                           ? UserModel.currentUser.statusMessage
                           : UserModel.currentUser ? UserModel.currentUser.server : ""